import request from "@/util/request";//记得引入进来

/**
 * 搜索并且获取首页轮轮播列表
 * @param searchDTO
 * @returns {*}
 */
export function getHomeAdvList(searchDTO) {
    return request({
        method: 'get',
        url: '/system/homeAdv/list',
        params: searchDTO
    })
}

/**
 * 获取首页广告的详细信息通过id
 * @param homeAdvId
 * @returns {*}
 */
export function getHomeAdvById(homeAdvId) {
    return request({
        method: 'get',
        url: '/system/homeAdv/id',
        params: {homeAdvId}
    })
}

/**
 * 申请首页广告
 * @param data
 * @returns {*}
 */
export function applyHomeAdv(data) {
    return request({
        method: 'post',
        url: '/system/homeAdv/apply',
        data
    })
}

/**
 * 修改（审核）
 * @param data
 * @returns {*}
 */
export function inspectHomeAdv(data) {
    return request({
        method: 'put',
        url: '/system/homeAdv/inspect',
        data
    })
}
